package train48days;

public class 不用加减乘除做加法 {
    public int Add(int num1,int num2) {
        int sum = num1;
        int jin = num2;
        while (jin !=0){
            int temp = sum^jin ;
             jin = (sum&jin)<<1;
            sum = temp;
        }
        return sum ;
    }
}
